package com.zlzlib.libindexpy.helper;

import android.content.Context;

/**
 * Created by zlz on 2019/11/4.
 * 常用词拼音多音字字典
 * 常用的多音字
 * CHANG'SHENG 长生
 * CHANG'DU 长度
 * CHANG'CHENG 长城
 * SHA'CHE 刹车
 */
public class PyNormalMap extends AndroidAssetDict {

    static volatile PyNormalMap singleton = null;

    public PyNormalMap(Context context) {
        super(context);
    }

    @Override
    protected String assetFileName() {
        return "normalText";
    }

    public static PyNormalMap getInstance(Context context) {
        if (context == null) {
            throw new IllegalArgumentException("context == null");
        }
        if (singleton == null) {
            synchronized (PyNormalMap.class) {
                if (singleton == null) {
                    singleton = new PyNormalMap(context);
                }
            }
        }
        return singleton;
    }
}
